package po;

import java.io.Serializable;

import vo.SlCourseVO;

public class SlCoursePO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String courseID;
	private String courseName;
	private String teacherName;
	private String teacherID;
	private String studentID;
	private String studentName;
	private String studentDepartment;
	private String score;

	public SlCoursePO() {

	}

	// lbq
	public SlCoursePO(String courseID, String coureName, String tID,
			String sID, String sName, String dep, String score) {
		this.courseID = courseID;
		this.courseName = coureName;
		this.studentID = sID;
		this.studentName = sName;
		this.studentDepartment = dep;
		this.score = score;
	}
	
	public SlCoursePO(String courseID, String courseName) {
		// TODO Auto-generated constructor stub
		this.courseID = courseID;
		this.courseName = courseName;

	}

	public SlCoursePO(String courseID, String courseName, String studentID,
			String score) {
		// TODO Auto-generated constructor stub
		this.courseName = courseName;
		this.courseID = courseID;
		this.studentID = studentID;
		this.score = score;
	}

	public void recordScore(String score) {
		this.score = score;
	}

	public void setTeacherName(String tName){
		this.teacherName = tName;
	}
	
	public String getStudentID() {
		return studentID;
	}

	public String getStudentName() {
		return studentName;
	}

	public String getcourseID() {
		return courseID;

	}

	public String getcourseName() {

		return courseName;

	}

	public String getScore() {
		return score;
	}
   
	public String getTeacherName(){
		
		return this.teacherName;
	
	}

	public String getStudentDepartment() {
		return studentDepartment;
	}

	public SlCourseVO toVo() {
		// TODO Auto-generated method stub
		SlCourseVO vo = new SlCourseVO(courseID, courseName,teacherID,studentID,studentName,studentDepartment,
				score);
		vo.setTeacherName(this.teacherName);
		return vo;
		
	}

}
